package com.ruoyi.business.controller;

import com.ruoyi.business.domain.CarPackageAudit;
import com.ruoyi.business.domain.ServiceItem;
import com.ruoyi.business.service.ICarPackageAuditService;
import com.ruoyi.business.service.IDoneTaskService;
import com.ruoyi.business.service.ITodoTaskService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.exception.BusinessException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/business/done")
public class DoneTaskController extends BaseController {
    private String prefix = "business/done";
    @Autowired
    private ITodoTaskService todoTaskService;

    @Autowired
    private IDoneTaskService doneTaskService;

    @GetMapping
    public String done() {
        return prefix+"/donePage";
    }


    @RequestMapping("/list")
    @ResponseBody
    public TableDataInfo list(CarPackageAudit carPackageAudit) {
        return doneTaskService.selectDoneList(carPackageAudit);
    }


}
